package cn.gson.crm.model.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import lombok.Data;
/**
 * 财务：收款记录详情表
 * @author john
 *
 */
@Data
@Entity
@Table(name="tb_cw_payrecord_detail")
public class PayrecordDetail {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="tb_pay_record_detail_id")
	private Long id;
	
	//多对一，关联的收款记录 
	@ManyToOne
	@JoinColumn(name="payrecord_id")
	private Payrecord payrecord;
	
	//本次缴费金额
	private Double money;
	
	//缴费方式
	@Column(name="pay_way")
	private String payWay;
	
	//缴费类型
	@Column(name="pay_type")
	private String payType;
	
	//缴费时间
	@Column(name="pay_time")
	private String payTime;
	
	@OneToOne
	@JoinColumn(name="image_id")
	private Images image;
	
	//多对一，关联员工
	@ManyToOne
	@JoinColumn(name="emp_id")
	private Emp emp;
	
	//是否删除
	private Boolean deleted;
	
}
